'use strict';

module.exports = {
    // 返回给前端的数据
    returnBody(status, message, data) {
        this.status = status;
        this.body = {
            code: status,
            message,
            data,
            ...this.body,
            responseTime: `${Date.now() - this.starttime}ms`,
            powerBy: 'KujoMiva'
        };
    }
};
